package com.project.frba.bifront.client.rpc;

import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.project.frba.bifront.client.model.User;

@RemoteServiceRelativePath("userServices")
public interface UserServices extends RemoteService{

	public String login(String username, String password);

	public Boolean logout();
	
	public Boolean validateSessionId(String sessionId);
	
	public User getUserByUsername(String username);
	
	public User getUserById(Long id);
	
	public List<User> getAllUsers();
	
	public Boolean removeUser(Long id);
	
	public Long storeUser(User user);
	
}
